package cn.edu.swu.hsy;

public class Main {
    public static void main(String[] args) {
        Student student1 = new Student("S2024001", "张三", "男", 20);
        Student student2 = new Student("S2024002", "李四", "女", 19);

        Course course1 = new Course("C001", "JavaWeb应用开发", "刘教授");
        Course course2 = new Course("C002", "数据库原理", "王老师");

        student2.setAge(20);
        course1.setTeacher("张教授");

        System.out.println("--- 学生信息 ---");
        student1.showInfo();
        student2.showInfo();

        System.out.println("\n--- 课程信息 ---");
        course1.showInfo();
        course2.showInfo();
    }
}
